package com.netx.generics.util;
import com.netx.generics.translation.Token;


class SymbolText extends BuiltinSymbol {

	public final Token text;
	
	public SymbolText(Token text) {
		this.text = text;
	}
	
	public String getText() {
		String value = text.getUnescapedValue();
		// Unescape special TEXT escapes:
		value = Strings.replaceAll(value, "\\$", "$");
		value = Strings.replaceAll(value, "\\(", "(");
		value = Strings.replaceAll(value, "\\)", ")");
		return value;
	}
}
